package com.qfedu.yanglao20.entity.article;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("文章内容实体类")
public class Article {
    @ApiModelProperty("文章ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("类型id")
    private Integer typeId;
    @ApiModelProperty("文章标题")
    private String articleTitle;
    @ApiModelProperty("文章类型")
    private String articleType;
    @ApiModelProperty("文章封面")
    private String articleCover;
    @ApiModelProperty("文章来源")
    private String articleSource;
    @ApiModelProperty("文章内容")
    private String articleContent;
    @ApiModelProperty("是否头条 0非头条1头条")
    private Integer articleHeadlines;
    @ApiModelProperty("排序")
    private Integer articleSort;
    @ApiModelProperty("文章状态 0禁用1可用")
    private Integer articleInfo;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;


}
